﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="thongtinKH.aspx.cs" Inherits="Admin_thongtinKH" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="themKH">
        <asp:Label ID="Label1" runat="server" Text="Mã KH :"></asp:Label>
        <asp:TextBox ID="TextBox1" runat="server" Width="200px"></asp:TextBox>
        <br />
        <asp:Label ID="Label2" runat="server" Text="Họ Tên :"></asp:Label>
        <asp:TextBox ID="TextBox2" runat="server" Width="200px"></asp:TextBox>
        <br />
        <asp:Label ID="Label3" runat="server" Text="Mã NV :"></asp:Label>
        <asp:TextBox ID="TextBox3" runat="server" Width="198px"></asp:TextBox>
        <br />
        <asp:Label ID="Label4" runat="server" Text="Giới Tính :"></asp:Label>
        <asp:TextBox ID="TextBox4" runat="server" Width="198px"></asp:TextBox>
        <br />
        <asp:Label ID="Label5" runat="server" Text="Ngày Sinh :"></asp:Label>
        <asp:TextBox ID="TextBox5" runat="server" Width="198px"></asp:TextBox>
        <br />
        <asp:Label ID="Label6" runat="server" Text="Địa Chỉ :"></asp:Label>
        <asp:TextBox ID="TextBox6" runat="server" Width="198px"></asp:TextBox>
        <br />
        <asp:Label ID="Label7" runat="server" Text="Phone :"></asp:Label>
        <asp:TextBox ID="TextBox7" runat="server" Width="198px"></asp:TextBox>
        <br />
        <asp:Label ID="Label8" runat="server" Text="Email :"></asp:Label>
        <asp:TextBox ID="TextBox8" runat="server" Width="198px"></asp:TextBox>
        <br />
        <asp:Label ID="Label9" runat="server" Text="Sở Thích :"></asp:Label>
        <asp:TextBox ID="TextBox9" runat="server" Width="198px"></asp:TextBox>
        <br />
        <asp:Label ID="Label10" runat="server" Text="Nghề Nghiệp :"></asp:Label>
        <asp:TextBox ID="TextBox10" runat="server" Width="198px"></asp:TextBox>
        <br />
        <asp:Label ID="Label11" runat="server" Text="Ngày Đến :"></asp:Label>
        <asp:TextBox ID="TextBox11" runat="server" Width="198px"></asp:TextBox>
        <br />
        <asp:Label ID="Label12" runat="server" ></asp:Label>
        <asp:Label ID="Label13" runat="server" ></asp:Label>
    </div>
    <div id="thongtinKH">
        <asp:Button ID="ThemKH" runat="server" OnClick="ThemKH_Click" Text="Thêm KH" />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
            OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCancelingEdit="GridView1_RowCancelingEdit"
            OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating">
            <RowStyle BackColor="White" ForeColor="#003399" />
            <Columns> 
                <asp:BoundField DataField="MaKH" HeaderText="Mã KH" ReadOnly="True">
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:BoundField>
                <asp:BoundField DataField="HoTen" HeaderText="Họ Tên">
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:BoundField>
                <asp:BoundField DataField="MaNV" HeaderText="Mã NV">
                    <ItemStyle Width="200px" />
                </asp:BoundField>
                <asp:BoundField DataField="GioiTinh" HeaderText="Giới Tính">
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:BoundField>
                <asp:BoundField DataField="NgaySinh" HeaderText="Ngày Sinh">
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:BoundField>
                <asp:BoundField DataField="DiaChi" HeaderText="Địa Chỉ">
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:BoundField>
                <asp:BoundField DataField="Sdt" HeaderText="Phone">
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:BoundField>
                <asp:BoundField DataField="Email" HeaderText="Email">
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:BoundField>
                 <asp:BoundField DataField="SoThich" HeaderText="Sở Thích">
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:BoundField>
                <asp:BoundField DataField="NgheNghiep" HeaderText="Nghề Nghiệp">
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:BoundField>
                <asp:BoundField DataField="NgayDen" HeaderText="Ngày Đến">
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:BoundField>
                <asp:CommandField CancelText="K Lưu" EditText="Sửa" ShowEditButton="True" UpdateText="Lưu" />
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Button ID="butXoa" runat="server" OnClick="XoaKH_Click" Text="Xóa" OnClientClick="return (confirm('Bạn có muốn xóa không?'));" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="chkXoa" runat="server" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
        </asp:GridView>
        <asp:Label ID="tbl" runat="server" Text=""></asp:Label>
    </div>
</asp:Content>
